package com.jia.dao;

import com.jia.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BooksMapper {

    int addBook(Books books);

    int deleteBook(@Param("id") int id);

    int updateBook(Books books);

    Books queryBookById(@Param("id") int id);

    List<Books> queryAllBooks();
}
